package com.service.impl;

import com.service.UserService;
import com.pojo.User;

public class UserServiceImpl implements UserService {

    private User user;

    public UserServiceImpl() {
    }

    public UserServiceImpl(User user) {
        this.user = user;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "UserServiceImpl{" +
                "user=" + user +
                '}';
    }

    @Override
    public void show() {
        System.out.println("请输出：");
        System.out.println(user);
    }
}
